//
//  commonTools.swift
//  微博
//
//  Created by 范承志 on 16/6/11.
//  Copyright © 2016年 fanchengzhi. All rights reserved.
//

import UIKit

//微博中需要使用的通知名字
let CZSWITCHROOTVCNOTI = "CZSWITCHROOTVCNOTI"

//微博app相关信息
let CZAppKey = "1683085166"
let CZAppSecret = "bf4af0398f45e4da39e29d68f6fc8b66"
let CZAppHuiDiaoYe = "http://www.baidu.com"
//微博账号和密码
let CZWebName = "13846601720"
let CZWebPassword = "dazx5211314"

//client_id	true	string	申请应用时分配的AppKey。
//redirect_uri

// 屏幕的宽度和高度
let CZSCREEN_W = UIScreen.main.bounds.width
let CZSCREEN_H = UIScreen.main.bounds.height

//微博项目的主题颜色
let CZTHEMECOLOR = UIColor.orange

// 常用字体大小
let CZBigFontSize: CGFloat = 18
let CZNormalFontSize: CGFloat = 14
let CZSmallFontSize: CGFloat = 10

//随机颜色
func CZRandomColor()->UIColor{
    let r = CGFloat (arc4random()%256)
    let g = CGFloat (arc4random()%256)
    let b = CGFloat (arc4random()%256)
    return UIColor(red: r/255, green: g/255, blue: b/255, alpha: 1)
}
